/*
 * @Author: Null
 * @Date: 2021-12-30 11:50:54
 * @Description: sass相关继承样式
 */

// 禁止用户选中 鼠标变为手形 , %开头的样式表示待继承样式,使用方法：@extend %unable-select
%unable-select {
    cursor: pointer;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

// 填满父元素
// 组要父元素 position: relative | absolute;
%full {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
}

// 将元素模拟成卡片外观
%card {
    border: 1px solid #dddee1;
    border-color: #e9eaec;
    background: #fff;
    border-radius: 10px;
    font-size: 14px;
    position: relative;
}

// flex 垂直水平居中
%flex-row-cencen {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

%flex-col-cencen {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

// 蒙层
%gray-mask {
    background: rgba(0, 0, 0, 0.45);
}

// 加载背景
%gary-bg{
    background-color: rgba(0, 0, 0, 0.25);
}

%flex-warp {
    flex-wrap: wrap;
}

%flex-nowarp {
    flex-wrap: nowrap;
}

%scroll-bar-style {
    overflow: auto;

    &::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    &::-webkit-scrollbar-track {
        border-radius: 4px;
    }

    &::-webkit-scrollbar-thumb {
        border-radius: 4px;
        background-color: rgb(0, 0, 0, 0.25);
    }
}

%no-scroll-bar {
    overflow: auto;

    &::-webkit-scrollbar {
        width: 0px;
        height: 0px;
    }

    &::-webkit-scrollbar-track {
        border-radius: 0px;
    }

    &::-webkit-scrollbar-thumb {
        border-radius: 0px;
    }
}

%input-placeholder {
    font-size: 14px;
    color: #c0c4cc;
}

%text-ellipsis-1 {
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }